package com.stylefeng.guns.modular.pay.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 商户信息表
 * </p>
 *
 * @author stylefeng
 * @since 2018-08-24
 */
@TableName("pay_mch_info")
public class MchInfo extends Model<MchInfo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 商户号
     */
    @TableField("mch_no")
    private String mchNo;
    /**
     * 商户名
     */
    @TableField("mch_name")
    private String mchName;
    /**
     * 商户简称
     */
    @TableField("mch_nick_name")
    private String mchNickName;
    /**
     * 商户类型（0-普通商户 1-及时道到账商户）
     */
    @TableField("mch_type")
    private Integer mchType;
    /**
     * 联系人姓名
     */
    @TableField("contact_name")
    private String contactName;
    /**
     * 联系人电话
     */
    @TableField("contact_phone")
    private String contactPhone;
    /**
     * 联系邮箱
     */
    @TableField("contact_email")
    private String contactEmail;
    /**
     * 商户秘钥
     */
    @TableField("md5_key")
    private String md5Key;
    /**
     * 签名方式（0-MD5 1-RSA）
     */
    @TableField("sign_type")
    private Integer signType;
    /**
     * 状态（0-停用 1-启用）
     */
    private Integer status;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMchNo() {
        return mchNo;
    }

    public void setMchNo(String mchNo) {
        this.mchNo = mchNo;
    }

    public String getMchName() {
        return mchName;
    }

    public void setMchName(String mchName) {
        this.mchName = mchName;
    }

    public String getMchNickName() {
        return mchNickName;
    }

    public void setMchNickName(String mchNickName) {
        this.mchNickName = mchNickName;
    }

    public Integer getMchType() {
        return mchType;
    }

    public void setMchType(Integer mchType) {
        this.mchType = mchType;
    }

    public String getContactName() {
        return contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public String getContactEmail() {
        return contactEmail;
    }

    public void setContactEmail(String contactEmail) {
        this.contactEmail = contactEmail;
    }

    public String getMd5Key() {
        return md5Key;
    }

    public void setMd5Key(String md5Key) {
        this.md5Key = md5Key;
    }

    public Integer getSignType() {
        return signType;
    }

    public void setSignType(Integer signType) {
        this.signType = signType;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "MchInfo{" +
        "id=" + id +
        ", mchNo=" + mchNo +
        ", mchName=" + mchName +
        ", mchNickName=" + mchNickName +
        ", mchType=" + mchType +
        ", contactName=" + contactName +
        ", contactPhone=" + contactPhone +
        ", contactEmail=" + contactEmail +
        ", md5Key=" + md5Key +
        ", signType=" + signType +
        ", status=" + status +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
